using System;
using System.Drawing;
using System.Windows.Forms;

namespace MDL.Class
{
	internal class AttributePage
	{
		private TabPage tabPage1;

		private GroupBox groupBox3;

		private DataGridView dataGridView3;

		private Label label11;

		private DataGridView dataGridView2;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

		private DataGridViewTextBoxColumn Column4;

		private Label label10;

		private ComboBox comboBox2;

		private Label label9;

		private Label label8;

		private DataGridView dataGridView1;

		private DataGridViewComboBoxColumn Column1;

		private DataGridViewTextBoxColumn Column2;

		private DataGridViewTextBoxColumn Column3;

		private TextBox textBox5;

		private Label label7;

		private TextBox textBox4;

		private Label label6;

		private TextBox textBox3;

		private Label label5;

		private TextBox textBox2;

		private Label label4;

		private ComboBox comboBox1;

		private Label label3;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;

		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;

		private Label tip;

		public TabPage getPage()
		{
			return tabPage1;
		}

		public void Init(Label tipLabel)
		{
			tip = tipLabel;
			tabPage1 = new TabPage();
			groupBox3 = new GroupBox();
			dataGridView3 = new DataGridView();
			dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn8 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn9 = new DataGridViewTextBoxColumn();
			label11 = new Label();
			dataGridView2 = new DataGridView();
			dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
			dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
			Column4 = new DataGridViewTextBoxColumn();
			label10 = new Label();
			comboBox2 = new ComboBox();
			label9 = new Label();
			label8 = new Label();
			dataGridView1 = new DataGridView();
			Column1 = new DataGridViewComboBoxColumn();
			Column2 = new DataGridViewTextBoxColumn();
			Column3 = new DataGridViewTextBoxColumn();
			textBox5 = new TextBox();
			label7 = new Label();
			textBox4 = new TextBox();
			label6 = new Label();
			textBox3 = new TextBox();
			label5 = new Label();
			textBox2 = new TextBox();
			label4 = new Label();
			comboBox1 = new ComboBox();
			label3 = new Label();
			tabPage1.AutoScroll = true;
			tabPage1.Controls.Add(groupBox3);
			tabPage1.Controls.Add(label8);
			tabPage1.Controls.Add(dataGridView1);
			tabPage1.Controls.Add(textBox5);
			tabPage1.Controls.Add(label7);
			tabPage1.Controls.Add(textBox4);
			tabPage1.Controls.Add(label6);
			tabPage1.Controls.Add(textBox3);
			tabPage1.Controls.Add(label5);
			tabPage1.Controls.Add(textBox2);
			tabPage1.Controls.Add(label4);
			tabPage1.Controls.Add(comboBox1);
			tabPage1.Controls.Add(label3);
			tabPage1.Location = new Point(4, 29);
			tabPage1.Name = "tabPage1";
			tabPage1.Padding = new Padding(3);
			tabPage1.Size = new Size(717, 615);
			tabPage1.TabIndex = 0;
			tabPage1.Text = "Attribute";
			tabPage1.UseVisualStyleBackColor = true;
			groupBox3.Controls.Add(dataGridView3);
			groupBox3.Controls.Add(label11);
			groupBox3.Controls.Add(dataGridView2);
			groupBox3.Controls.Add(label10);
			groupBox3.Controls.Add(comboBox2);
			groupBox3.Controls.Add(label9);
			groupBox3.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			groupBox3.Location = new Point(30, 512);
			groupBox3.Name = "groupBox3";
			groupBox3.Size = new Size(643, 463);
			groupBox3.TabIndex = 14;
			groupBox3.TabStop = false;
			groupBox3.Text = "Application";
			dataGridView3.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
			dataGridView3.BackgroundColor = SystemColors.ActiveCaption;
			dataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			dataGridView3.Columns.AddRange(dataGridViewTextBoxColumn4, dataGridViewTextBoxColumn5, dataGridViewTextBoxColumn6, dataGridViewTextBoxColumn7, dataGridViewTextBoxColumn8, dataGridViewTextBoxColumn9);
			dataGridView3.Location = new Point(24, 283);
			dataGridView3.Name = "dataGridView3";
			dataGridView3.RowTemplate.Height = 23;
			dataGridView3.Size = new Size(601, 150);
			dataGridView3.TabIndex = 17;
			dataGridViewTextBoxColumn4.HeaderText = "RegionName";
			dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
			dataGridViewTextBoxColumn4.Width = 133;
			dataGridViewTextBoxColumn5.HeaderText = "xMin";
			dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
			dataGridViewTextBoxColumn5.Width = 73;
			dataGridViewTextBoxColumn6.HeaderText = "xMax";
			dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
			dataGridViewTextBoxColumn6.Width = 73;
			dataGridViewTextBoxColumn7.HeaderText = "yMin";
			dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
			dataGridViewTextBoxColumn7.Width = 73;
			dataGridViewTextBoxColumn8.HeaderText = "yMax";
			dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
			dataGridViewTextBoxColumn8.Width = 73;
			dataGridViewTextBoxColumn9.HeaderText = "SpatialRef";
			dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
			dataGridViewTextBoxColumn9.Width = 133;
			label11.AutoSize = true;
			label11.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label11.Location = new Point(21, 257);
			label11.Name = "label11";
			label11.Size = new Size(68, 18);
			label11.TabIndex = 16;
			label11.Text = "Scope:";
			dataGridView2.AllowUserToAddRows = false;
			dataGridView2.AllowUserToDeleteRows = false;
			dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
			dataGridView2.BackgroundColor = SystemColors.ActiveCaption;
			dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			dataGridView2.Columns.AddRange(dataGridViewTextBoxColumn1, dataGridViewTextBoxColumn2, dataGridViewTextBoxColumn3, Column4);
			dataGridView2.Location = new Point(24, 114);
			dataGridView2.Name = "dataGridView2";
			dataGridView2.RowTemplate.Height = 23;
			dataGridView2.Size = new Size(601, 120);
			dataGridView2.TabIndex = 15;
			dataGridViewTextBoxColumn1.HeaderText = "Dimension";
			dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
			dataGridViewTextBoxColumn1.ReadOnly = true;
			dataGridViewTextBoxColumn2.HeaderText = "Min";
			dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
			dataGridViewTextBoxColumn3.HeaderText = "Max";
			dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
			Column4.HeaderText = "Unit";
			Column4.Name = "Column4";
			label10.AutoSize = true;
			label10.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label10.Location = new Point(21, 77);
			label10.Name = "label10";
			label10.Size = new Size(278, 18);
			label10.TabIndex = 14;
			label10.Text = "Spatiotemporal Step Length:";
			comboBox2.DropDownStyle = ComboBoxStyle.DropDownList;
			comboBox2.FormattingEnabled = true;
			comboBox2.Items.AddRange(new object[4]
			{
				"Global",
				"Regional/Large",
				"Regional/Middle",
				"Regional/Small"
			});
			comboBox2.Location = new Point(245, 35);
			comboBox2.Name = "comboBox2";
			comboBox2.Size = new Size(380, 25);
			comboBox2.TabIndex = 13;
			label9.AutoSize = true;
			label9.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label9.Location = new Point(21, 37);
			label9.Name = "label9";
			label9.Size = new Size(218, 18);
			label9.TabIndex = 12;
			label9.Text = "Spatiotemporal Scale:";
			label8.AutoSize = true;
			label8.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label8.Location = new Point(47, 349);
			label8.Name = "label8";
			label8.Size = new Size(108, 18);
			label8.TabIndex = 11;
			label8.Text = "Mechanism:";
			dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
			dataGridView1.BackgroundColor = SystemColors.ActiveCaption;
			dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			dataGridView1.Columns.AddRange(Column1, Column2, Column3);
			dataGridView1.Location = new Point(172, 349);
			dataGridView1.Name = "dataGridView1";
			dataGridView1.RowTemplate.Height = 23;
			dataGridView1.Size = new Size(501, 150);
			dataGridView1.TabIndex = 10;
			dataGridView1.DataError += dataGridView1_DataError;
			Column1.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
			Column1.HeaderText = "Type";
			Column1.Items.AddRange("Text", "Algorithm", "Formula");
			Column1.Name = "Column1";
			Column1.Resizable = DataGridViewTriState.True;
			Column1.SortMode = DataGridViewColumnSortMode.Automatic;
			Column2.HeaderText = "Name";
			Column2.Name = "Column2";
			Column3.HeaderText = "Value";
			Column3.Name = "Column3";
			textBox5.Location = new Point(172, 236);
			textBox5.Multiline = true;
			textBox5.Name = "textBox5";
			textBox5.Size = new Size(501, 90);
			textBox5.TabIndex = 9;
			label7.AutoSize = true;
			label7.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label7.Location = new Point(57, 240);
			label7.Name = "label7";
			label7.Size = new Size(98, 18);
			label7.TabIndex = 8;
			label7.Text = "Abstract:";
			textBox4.Location = new Point(172, 189);
			textBox4.Name = "textBox4";
			textBox4.Size = new Size(501, 29);
			textBox4.TabIndex = 7;
			textBox4.Enter += keywords_Enter;
			textBox4.Leave += Control_Leave;
			label6.AutoSize = true;
			label6.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label6.Location = new Point(57, 192);
			label6.Name = "label6";
			label6.Size = new Size(98, 18);
			label6.TabIndex = 6;
			label6.Text = "Keywords:";
			textBox3.Location = new Point(172, 138);
			textBox3.Name = "textBox3";
			textBox3.Size = new Size(501, 29);
			textBox3.TabIndex = 5;
			textBox3.Enter += wiki_Enter;
			textBox3.Leave += Control_Leave;
			label5.AutoSize = true;
			label5.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label5.Location = new Point(97, 143);
			label5.Name = "label5";
			label5.Size = new Size(58, 18);
			label5.TabIndex = 4;
			label5.Text = "Wiki:";
			textBox2.Location = new Point(172, 87);
			textBox2.Name = "textBox2";
			textBox2.Size = new Size(501, 29);
			textBox2.TabIndex = 3;
			label4.AutoSize = true;
			label4.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label4.Location = new Point(37, 92);
			label4.Name = "label4";
			label4.Size = new Size(118, 18);
			label4.TabIndex = 2;
			label4.Text = "Lcoal Name:";
			comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
			comboBox1.FormattingEnabled = true;
			comboBox1.Items.AddRange(new object[7]
			{
				"EN_US",
				"ZH_CN",
				"DE_DE",
				"RU_RU",
				"AR",
				"ES",
				"Others"
			});
			comboBox1.Location = new Point(172, 37);
			comboBox1.Name = "comboBox1";
			comboBox1.Size = new Size(501, 27);
			comboBox1.TabIndex = 1;
			label3.AutoSize = true;
			label3.Font = new Font("Times New Roman", 13f, FontStyle.Bold, GraphicsUnit.Point, 134);
			label3.Location = new Point(57, 41);
			label3.Name = "label3";
			label3.Size = new Size(98, 18);
			label3.TabIndex = 0;
			label3.Text = "Language:";
		}

		private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
		{
		}

		private void keywords_Enter(object sender, EventArgs e)
		{
			showTip("Please separate the different keywords with ';'");
		}

		private void Control_Leave(object sender, EventArgs e)
		{
			showTip("");
		}

		private void wiki_Enter(object sender, EventArgs e)
		{
			showTip("eg.https://en.wikipedia.org/wiki/Nanjing");
		}

		private void showTip(string str)
		{
			tip.Text = str;
		}
	}
}
